package com.dj.Demo.线程;

public class DemoThread implements Runnable {
    @Override
    public void run() {

        for (int i = 0; i < 100; i++) {
            System.out.println(Thread.currentThread().getName()+"----"+i);
            try {
                Thread.sleep(1,1);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
